package com.ruoyi.ai.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 变更业务类型
 */
@AllArgsConstructor
@Getter
public enum ChangeBizTypeEnum {
    AI_CHAT(0,"AI聊天"),
    //OCR(1,"图片转文字"),
    //VOICE(2,"语音转文字")
    ;
    private Integer type;
    private String desc;

    public static ChangeBizTypeEnum getByType(Integer type){
        return Arrays.stream(values()).filter(c-> c.getType().equals(type)).findFirst().orElse(null);
    }

}
